---
title: "Reference: listScorers() | Core"
description: "Documentation for the `listScorers()` method in Mastra, which returns all registered scorers for evaluating AI outputs."
---

# listScorers()

The `listScorers()` method returns all scorers that have been registered with the Mastra instance. Scorers are used for evaluating AI outputs and can override default scorers during agent generation or workflow execution.

## Usage Example

```typescript
import { mastra } from "./mastra";

// Get all registered scorers
const allScorers = mastra.listScorers();

// Access a specific scorer
const myScorer = allScorers.relevancyScorer;
```

## Parameters

This method takes no parameters.

## Returns

<PropertiesTable
  content={[
    {
      name: "scorers",
      type: "Record<string, MastraScorer> | undefined",
      description:
        "An object containing all registered scorers, where keys are scorer names and values are MastraScorer instances. Returns undefined if no scorers are registered.",
    },
  ]}
/>

## Related

- [getScorer()](/reference/v1/core/getScorer) - Get a specific scorer by key
- [getScorerById()](/reference/v1/core/getScorerById) - Get a scorer by its id property
- [Scorers Overview](/docs/v1/evals/overview) - Learn about creating and using scorers
